package com.eric.resp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description:
 * @author: liuBing
 * @create: 2022-12-19 16:46
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResp<T> {
    private Integer code;
    private String message;

    private T data;

    public BaseResp(String defaultMessage) {
        this.code = 500;
        this.message = defaultMessage;
    }



}
